package com.schedule.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.schedule.dao.CountMapper;
import com.schedule.entity.Count;
@Service
public class CountServiceImpl implements CountService {
	@Autowired
	CountMapper countmapper;
	public List<Count> selectAll(String user) {
		return countmapper.selectAll(user);
	}
	public void AddCount(Count count) {
		countmapper.AddCount(count);	
	}
	public void DeleteCount(Integer id) {
		countmapper.DeleteCount(id);
	}
	public Count SelectById(Integer id) {
		
		return countmapper.SelectById(id);
	}
	public void UpdateCount(Count count) {
		countmapper.UpdateCount(count);
		
	}
	
    public List<Count> selectAlltime(String user, String end_time) {
		
		return countmapper.selectAlltime(user, end_time);
	}

}
